package com.snack.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.snack.common.result.Result;
import com.snack.entity.dto.OrderDTO;
import com.snack.entity.pojo.Member;
import com.snack.entity.pojo.Order;
import com.snack.entity.pojo.Snack;

/**
 * @author huangfuhao
 * @Date 2025/3/30
 */

public interface OrderService extends IService<Order> {
    Result addOrder(OrderDTO orderDTO);

    Result listOrder(Order order);

    Result getOrderDetails(Order order);

    Result listOrdersByConsumerPhone(Member member);

    //库存销毁接口
    Result deleteInventory(OrderDTO orderDTO);

    Result deleteOrder(Order order);
}
